<template>
    <div>
        <h3>count:{{ useCount.count }}</h3>
        <button @click="useCount.AddOneTenth">点击+1</button>
        <button @click="useCount.AddN(N)">点击加N</button>
        <button @click="useCount.AddOne">2秒后+1</button>
    </div>
</template>

<script lang="ts">
import { defineComponent,ref } from "vue";

export default defineComponent({
    name: "Count",
});
</script>

<script setup lang="ts">
    import useCountStore from '../../store/modules/Count.ts'
    const useCount = useCountStore();
    const N = ref<number>(6)
</script>

<style  scoped >
    
</style>